/*
 * ajax二次封装
 */
function Ajax(opt) {
	var url = opt.url;
	var data = (typeof opt.data != 'undefined') ? opt.data : null;
	var callback1 = (typeof opt.call1 != 'undefined') ? opt.call1 : null;
	var callback2 = (typeof opt.call2 != 'undefined') ? opt.call2 : null;
	var opera = (typeof opt.opera != 'undefined') ? opt.opera : 'POST';
	var load = (typeof opt.load != 'undefined') ? opt.load : true;
	if (load) {
	};
	$.ajax({
		type: opera,
		url: url,
		data: data,
		dataType: 'json',
		contentType: 'application/json',
		success: function(json) {
			if (callback1 != null && callback1 != '') {
				callback1(json);
				if (load) {
				};
			}
		},
		error: function(json) {
			if (callback2 != null && callback2 != '') {
				callback2(json);
				if (load) {
				};
			} else {
				if (load) {
				};
			};
		}
	});
}
//注销
// $(".").click(function(){

// });